home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / AECUR100.ARJ / CORNERCH.C < prev    next >
C/C++ Source or Header  |  1990-03-08  |  752b  |  39 lines

  1. /*----------------------------------------------------------------------
  2.  *
  3.  *  cornerchar.c 
  4.  *
  5.  *  copyright (c) 1987,88,89,90 J. Alan Eldridge
  6.  *
  7.  *  returns the correct corner character
  8.  *
  9.  *  cornerchar(n,v,h)
  10.  *
  11.  *  v & h are 0 for single line, 1 for double,
  12.  *  n is location as per the following diagram:
  13.  *
  14.  *      0   1
  15.  *
  16.  *      3   2
  17.  *
  18.  *  SEE ALSO: teechar.c, line.c
  19.  *
  20.  *----------------------------------------------------------------------
  21.  */
  22.  
  23. #include "curses.h"
  24.  
  25. int
  26. cornerchar(n, v, h)
  27. int n, v, h;
  28. {
  29.     static UCHAR cchars[][2][2] = {
  30.         218, 213, 214, 201, 
  31.         191, 184, 183, 187,
  32.         217, 190, 189, 188,
  33.         192, 212, 211, 200
  34.       };
  35.   
  36.     return cchars[n][v][h];
  37. }
  38.  
  39.